//
//  LoginStore.h
//  NewPro
//
//  Created by 何荧红 on 2019/4/25.
//  Copyright © 2019 何荧红. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface LoginStore : NSObject
#pragma mark 登陆
- (void)PostWithCustomName:(NSString *)customName passWord:(NSString *)passWord Success:(void(^)(UserDefaultsManager *model))success Failure:(void(^)(NSError *error))failure;

#pragma mark 注册
- (void)RegisterWithPrams:(NSDictionary *)prams Success:(void(^)(NSString *code))success Failure:(void(^)(NSError *error))failure;

#pragma mark 忘记密码时修改密码
- (void)forgetPassword:(NSDictionary *)prams Success:(void(^)(NSString *code))success Failure:(void(^)(NSError *error))failure;

#pragma mark 注册获取验证码
- (void)sendCodeWithTelephoneNumber:(NSString *)telephoneNumber Success:(void(^)(id res))success Failure:(void(^)(NSError *error))failure;

#pragma mark 忘记密码验证码
- (void)ForgetsendCodeWithTelephoneNumber:(NSString *)telephoneNumber Success:(void(^)(id res))success Failure:(void(^)(NSError *error))failure;

#pragma mark 刷新友盟token
- (void)updateWithDeviceToken;

@end

NS_ASSUME_NONNULL_END
